<?php
/**
 * Created by PhpStorm.
 * User: superxing-cto
 * Date: 17/08/30
 * Time: 11:37
 */

namespace App\Models;

/**
 * Class Coupon
 * @package App\Models
 * @property string title
 * @property integer order_scope
 * @property integer price 
 * @property boolean status 状态
 * @property boolean is_repeat 
 */
class RecommendArtist extends ApplicationModel
{
    protected $fillable = [
        'user_id',
        'user_name',
        'user_tag',
        'service_tag',
		'cover',
        'sort',
        'status',
        'start_time',
        'end_time'
    ];
    public function scopeRelease($query)
    {
        return $query->where('status',1)->where('start_time', '<=', date('Y-m-d H:i:s'))->where('end_time', '>=', date('Y-m-d H:i:s'));

    }

}